<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>进度条 edit</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        
        div {
            margin: 30px;
            width: 200px;
            height: 25px;
            /* border: #999 solid; */
        }
        
        @keyframes loading {
            95%,
            100% {
                background-size: 100%;
            }
        }
        
        .progress1 {
            animation: loading 1s infinite;
            background: linear-gradient( 90deg, orange, orange) no-repeat 0 / 0%, linear-gradient( 90deg, #eee, #eee) no-repeat 0 / 100%;
        }
        
        .progress2 {
            border-radius: 25px;
            background: linear-gradient( 90deg, pink, skyblue) no-repeat 0 / 0%;
            animation: loading 3s 1s infinite;
        }
        
        .progress3 {
            border-radius: 25px;
            animation: loading 3s infinite;
            background: repeating-linear-gradient(45deg, orange 0 10px, blue 0 20px) 0 / 0% no-repeat, repeating-linear-gradient(45deg, #eee 0 10px, #fff 0 20px) 0 / 100% no-repeat;
        }
        
        @keyframes loading2 {
            100% {
                background-size: 110%;
            }
        }
        
        .progress4 {
            animation: loading2 3s infinite steps(11);
            height: 15px;
            background: repeating-linear-gradient(90deg, #000 0 15px, #fff 0 20px) 0 / 0% no-repeat, repeating-linear-gradient(90deg, #ccc 0 15px, #fff 0 20px) 0 / 100% no-repeat;
        }
    </style>
</head>

<body>
    <div class="progress1"></div>
    <div class="progress2"></div>
    <div class="progress3"></div>
    <div class="progress4"></div>
</body>

</html>